// config.js
// 多环境配置
const env = process.env.NODE_ENV // 获取当前环境变量

let BASE_URL = ''
let AUTH_URL = ''
let MOVE_APP_URL = ''

switch (env) {
  case 'development': // 开发环境
    BASE_URL = 'http://192.168.43.179/wordBackstageManagement'
    AUTH_URL = 'http://192.168.43.179/authService'
    break
  case 'test': // 测试环境
    BASE_URL = 'http://test.example.com'
    break
  case 'production': // 生产环境
    BASE_URL = 'http://liujiji.nat300.top/wordBackstageManagement'
    AUTH_URL = 'http://liujiji.nat300.top/authService'
    break
  default:
    BASE_URL = 'http://192.168.43.179'
}

export default {
  BASE_URL,
  AUTH_URL
}
